import request from '@/utils/request'
// 调拨管理 列表查询
export function getListAPI(params) {
    return request({
        url: '/storage/allotManagement/list',
        method: 'GET',
        params
    })
}

// 新增 调拨单
export function addListAPI(data) {
    return request({
        url: '/storage/allotManagement/addAllot',
        method: 'POST',
        data
    })
}

// 调拨管理 删除
export function deleteAllotAPI(data) {
    return request({
        url: '/storage/allotManagement/deleteAllot/' + data,
        method: 'DELETE'
    })
}

// 调拨单 明细列表查询
export function allotManagAPI(params) {
    return request({
        url: '/storage/allotManagementDetail/list',
        method: 'GET',
        params
    })
}

// 调拨管理修改
export function updateAllotAPI(data) {
    return request({
        url: '/storage/allotManagement/updateAllot',
        method: 'POST',
        data
    })
}

// 调拨单 详情
export function GetViewAPI(data) {
    return request({
        url: '/storage/allotManagement/view/' + data,
        method: 'GET'
    })
}

// 调入调出仓库下拉
export function GetCkByIdAPI(data) {
    return request({
        url: '/storage/warehouse/getCkById',
        method: 'GET'
    })
}

// 调拨关结单据
export function CloseAllotAPI(data) {
    return request({
        url: '/storage/allotManagement/closeAllot',
        method: 'POST',
        data
    })
}

// Pda调拨出库
export function OutPdaAPI(data) {
    return request({
        url: '/storage/allotManagement/outAllot',
        method: 'POST',
        data
    })
}

// Pda调拨入库
export function GoPdaAPI(data) {
    return request({
        url: '/storage/allotManagement/inAllot',
        method: 'POST',
        data
    })
}

// Pda 交接
export function OverAllotAPI(data) {
    return request({
        url: '/storage/allotManagement/overAllot',
        method: 'POST',
        data
    })
}

// 拣货完成出库
export function FinishAllotAPI(data) {
    return request({
        url: '/storage/allotManagement/finishAllot/' + data,
        method: 'GET'
    })
}

// 拣货完成入库
export function FinishAllotInAPI(data) {
    return request({
        url: '/storage/allotManagement/finishAllotIn/' + data,
        method: 'GET'
    })
}

// 拣货撤销
export function RepealAllotAPI(data) {
    return request({
        url: '/storage/allotManagement/repealAllot/' + data,
        method: 'GET'
    })
}

// 拣货实体
export function GetSchemePdaInfoAPI(params) {
    return request({
        url: '/storage/productionPicking/getSchemePdaInfo',
        method: 'GET',
        params
    })
}

// 根据物料号码查询出物料信息
export function getByMaterialNumberAPI(params) {
    return request({
        url: '/storage/materialSplitting/byMaterialNumber',
        method: 'GET',
        params
    })
}

// 平均拆分
export function averageAPI(data) {
    return request({
        url: '/storage/materialSplitting/average',
        method: 'POST',
        data
    })
}

// 不平均拆分
export function notAverageAPI(data) {
    return request({
        url: '/storage/materialSplitting/notAverage',
        method: 'POST',
        data
    })
}